package com.landinfo.service;

import com.landinfo.service.dto.GpsLocationDTO;

import java.util.List;

/**
 * Service Interface for managing DataType.
 */
public interface GpsLocationService {

    /**
     * Save a dataType.
     *
     * @param dataTypeDTO the entity to save
     * @return the persisted entity
     */
    GpsLocationDTO save(GpsLocationDTO dataTypeDTO);

    Integer saveAll(List<GpsLocationDTO> dataTypeDTOs);

    /**
     *  Get all the dataTypes.
     *
     *  @return the list of entities
     */
    List<GpsLocationDTO> findAll();

    public List<GpsLocationDTO> getNewAllDevice();
    /**
     *  Get the "id" dataType.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    GpsLocationDTO findOne(String id);

    /**
     *  Delete the "id" dataType.
     *
     *  @param id the id of the entity
     */
    void delete(String id);

    /**
     * 根据parentId删除
     * @param parentId
     */
    void deleteByParentId(String parentId);
}
